package com.gem.growingtree.activity;

import java.util.ArrayList;
import java.util.HashMap;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.SimpleAdapter;

public class BabyPhotoActivity extends ListActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_baby_photo);
		  ArrayList<HashMap<String, Object>> listitem=new ArrayList<HashMap<String,Object>>();
	        HashMap<String, Object> map1=new HashMap<String, Object>();
	        
	        map1.put("photo", R.drawable.baby_growing);
	        listitem.add(map1);
	        SimpleAdapter  listitemAdapter=new SimpleAdapter(this, listitem,R.layout.baby_photo_item, 
	        		new String[]{"photo"}, new int[]{R.id.baby_photo_item});
	        setListAdapter(listitemAdapter);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.baby_photo, menu);
		return true;
	}

}
